package com.dks.repository;

import java.util.*;
import com.dks.models.Diary;
import com.dks.result.ResultModel;

public interface IDiaryRepository {

    Integer insert(Diary diary);

    Integer update(Diary diary);

    Integer delete(Integer id);

    Diary select(Integer id);

    Integer cntByMap(Map<String, Object> map);

    List<Integer> getByMap(Map<String, Object> map);

    List<Diary> getByMapList(Map<String, Object> map);

    Integer updateByCode(Diary diary);

    Diary selectByBfCode(String bfCode);

    ResultModel<Object> getCourseTeacherList(Integer teacherId, Integer pageNum, Integer pageSize);

    ResultModel<Object> getCourseTeacherInfo(Integer diaryId,Integer userId);

    ResultModel<Object> addTeacherDiary(Diary diary);
}
